

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UserTool : NSObject
+ (void)login:(NSString *)acount psw:(NSString*)psw complete:(nullable void(^) (NSDictionary *dict))block;
+ (void)register:(NSString*)account psw:(NSString*)psw complete:(nullable void(^) (NSDictionary *dict))block;
+ (void)register:(NSString*)username account:(NSString*)account psw:(NSString*)psw complete:(nullable void(^) (NSDictionary *dict))block;
+ (void)update:(User *)user complete:(nullable void(^) (NSDictionary *dict))block;
+ (void)delete:(User *)user complete:(nullable void(^) (NSDictionary *dict))block;
+ (void)find:(NSString*)account complete:(nullable void(^) (User *user))block;

@end

NS_ASSUME_NONNULL_END
